package de.dlrg.wms.dummyDevice;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

import de.dlrg.wms.dummyDevice.gui.DummyDeviceGui;
import de.dlrg.wms.model.Track;
import wms2010.interfaces.devices.IDevice;

@javax.persistence.Entity
public class DummyDevice extends IDevice {
	private Track track;
	private DummyDeviceGui deviceGui;
	
	public DummyDeviceGui getDeviceGui() {
		return this.deviceGui;
	}
	
	public Track getTrack() {
		return this.track;
	}
	
	public void setTrack(Track track) {
		this.track = track;
	}
	

	public DummyDevice(String name) {
		this.setName(name);
		deviceGui = new DummyDeviceGui(this);
	}

	public void rumble() {
		this.deviceGui.rumbled();
	}

	public DummyDevice() {
		
	}
}
